<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>用户信息</title>
<style type="text/css">
#div_address {
	width: 70%;
	word-wrap: break-word;
	text-align: left;
}
</style>
</head>
{% include 'menu.html' %}
<body>
<div>
<center>
	<h1><p class="text-info">用户信息</p></h1>
	<form action="/submit_user" method='post'>
	<table width="40%" border="0">
		{% if activity == '0' %}
        <tr>
            <td colspan="2">
            <div class="alert alert-warning">
            <button type="button" class="close" data-dismiss="alert">&times;</button>
            <strong>当您提交后，我们会向您的邮箱发送含有激活链接的邮件，请查收激活！</strong>
            </div>
            </td>
        </tr>
        {% endif %}
    	<tr>
        	<td colspan="2">
            {% if error %}
                <div class="alert alert-error">
                <button type="button" class="close" data-dismiss="alert">&times;</button>
                <strong>填写信息有误，请重新填写！</strong>
                </div>
            {% endif %}
    		</td>
        </tr>
    	<tr>
			<td width="29%"><strong><p class="text-info">用户名：</p></strong></td><td width="71%"><strong><p class="text-info">{{ username }}</p></strong></td>
        </tr>
		{% if activity == '1' %}
			<tr>
				<td>性别:</td><td>{{ gender }}</td>
			</tr>
			<tr>
				<td>身份证:</td><td>{{id}}</td>
			</tr>
			<tr>
				<td>邮箱:</td><td>{{ email }}</td>
			</tr>
			<tr>
				<td>手机:</td><td>{{ telephone }}</td>
			</tr>
			<tr>
				<td>地址:</td><td><div id="div_address">{{ address }}</div></td>
			</tr>
		{% else %}
			<tr>
				<td>邮箱:</td><td><div class="input-prepend"><span class="add-on"><i class="icon-envelope"></i></span><input type="text" name="email"></div></td>
			</tr>
			<tr>
				<td>手机:</td><td><input type="text" name="telephone"></td>
			</tr>
			<tr>
				<td>性别:</td><td><label class="radio inline"><input type="radio" name="gender" value="男" />男</label><label class="radio inline"><input type="radio" name="gender" value="女" />女</label></td>
			</tr>
			<tr>
				<td>身份证:</td><td><input type="text" name="ident" placeholder="虚假的身份证号码不能通过验证"></td>
			</tr>
			<tr>
				<td>地址:</td><td><textarea name="address"></textarea></td>
			</tr>
              <tr>
                <td><input type="submit" value="提交信息" class="btn btn-primary"></td><td><input type="reset" value="清空" class="btn"></td>
              </tr>
		{% endif %}
    </table>
	</form>
</center>
</div>
</body>
{% include 'tail.html' %}
</html>
